﻿using System.Collections.Generic;

namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 部门
    /// </summary>
    public class VDepartment : BaseVModel
    {
        private string _departmentName = string.Empty;

        ///<Summary>
        /// 部门名称
        ///</Summary>
        public string DepartmentName
        {
            get { return string.IsNullOrWhiteSpace(_departmentName) ? string.Empty : _departmentName; }
            set { _departmentName = value; }
        }

        ///<Summary>
        /// 父级ID
        ///</Summary>
        public int ParentId { get; set; }

        ///<Summary>
        /// 状态
        ///</Summary>
        public Enum.CommonStatus Status { get; set; }

        /// <summary>
        /// 岗位列表
        /// </summary>
        public List<VRole> Roles { get; set; } = new List<VRole>();
    }
}
